﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/RedesignedMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	klassInsert
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <form id="form1" method = "post" action = "klassInsert" runat="server">
 
<%--<% using (Html.BeginForm())
       { %>--%>
 <%-- <form id="form1" method = "post" action="c/a" runat="server">--%>
    <h2>
        ثبت کلاس
    </h2>
    <table>
     <%--<h2>
        ثبت کلاس&nbsp;
    </h2>--%>
        <tr>
          <td>نام درس</td>
          <td>
         
           <!--%=Html.DropDownList("course_id",(IEnumerable<SelectListItem>)ViewData["courseName"]) %-->
           <select name="course_id">
                <% foreach (final_darskade.Models.course c in (List<final_darskade.Models.course>)ViewData["courseName"])
                   { %>
                        <option value="<%=c.course_id%>"><%=c.name%></option>
                <% } %>
           </select>    
            </td>
    
        </tr>
        <tr>
            <td>
                نام استاد
            </td>
             <td>
                <select name="prof_id">
                    <% foreach (final_darskade.Models.user u in (List<final_darskade.Models.user>)ViewData["professorName"])
                       { %>
                            <option value="<%=u.user_id%>"> <%=u.first_name + " " + u.last_name%> </option>
                    <% } %>
                </select>
            </td>
           
        </tr>
        <tr>
            <td>
                زمان کلاس
            </td>
            <td>
                <select name="time_id">
                    <% foreach (final_darskade.Models.time_in_week t in (List<final_darskade.Models.time_in_week>)ViewData["timeid"])
                       {%>
                            <option value="<%=t.id%>"> <%= t.id %> </option>
                    <% } %>
                </select>
            </td>
        </tr>
         <tr>
            <td>
                ترم
            </td>
            <td>
                <!--%= Html.TextBox("term", null, new { style = "width:500px" }) %-->
                <input type="text" name="term" />
            </td>
        </tr>
        <tr>
            <td>
           <%-- cal--%>
                زمان شروع امتحان
            </td>
            <td>
                <!--%= Html.TextBox("start_exam_date", null, new { style = "width:500px" }) %-->
                <input type="text" name="start_exam_date_time" />
            </td>
        </tr>
        <tr>
            <td>
           <%-- cal--%>
                زمان پایان امتحان
            </td>
            <td>
                <!--%= Html.TextBox("end_exam_date", null, new { style = "width:500px" }) %-->
                <input type="text" name="end_exam_date_time" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
       
   <%-- </table>--%>
     
                <input type="submit" name="submit" id="action" value="ثبت" />
               
            </td>
        </tr>
    </table>
    </form>
</asp:Content>

